package updatepackage;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.DriverManager;
import javabean.Schedule;
import javabean.Employee;
import javabean.Project;
import javabean.Work;
import javabean.Report;
import javabean.Sticker;

public abstract class Update{
	protected Connection getConnection() throws SQLException{
        return DriverManager.getConnection("jdbc:apache:commons:dbcp:/pool");
    }
	
	public void updateDB(Project pro){}
	public void updateDB(Schedule sch){}
	public void updateDB(Employee emp){}
	public void updateDB(Work wor){}
	public void updateDB(Report rep){}
	public void updateDB(Sticker sti){}
	public void updateDB(int a, String b){}
}